//
//  HMPeopleListTableViewCell.m
//  HMSupplier
//
//  Created by haohao on 2017/7/6.
//  Copyright © 2017年 haohao. All rights reserved.
//

#import "HMPeopleListTableViewCell.h"

@implementation HMPeopleListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    // Initialization code
}

- (void)setIndex:(NSIndexPath *)index {
    if (index.section == 0) {
        _nameLabel.text = @"我的账单";
        _titleImageVI.image = [UIImage imageNamed:@"people_my_bill"];
    }
    if (index.section == 1) {
        _nameLabel.text = @"修改密码";
        _titleImageVI.image = [UIImage imageNamed:@"people_my-lock"];
    }
//    if (index.section == 2) {
//        _nameLabel.text = @"关于我们";
//        _titleImageVI.image = [UIImage imageNamed:@"people_my-aboutus"];
//    }
    if (index.section == 2) {
        _nameLabel.text = @"退出登录";
        _titleImageVI.image = [UIImage imageNamed:@"people_my-exit"];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
